From 2ee9779f5f67dcc127d906f9ba272d4e8cbb5faf Mon Sep 17 00:00:00 2001 From: parkrrrr Date: Thu, 27 Apr 2006 12:58:21 +0000 Subject: [PATCH] use track_waypt_count instead of route_waypt_count --- shape.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shape.c b/shape.c index 28e9a1ba7..5084f58d8 100644 --- a/shape.c +++ b/shape.c @@ -239,7 +239,7 @@ my_write_wpt(const waypoint *wpt) void poly_init(const route_head *h) { - int ct = route_waypt_count(); + int ct = track_waypt_count(); polybufx = xcalloc(ct, sizeof(double)); polybufy = xcalloc(ct, sizeof(double)); polybufz = xcalloc(ct, sizeof(double)); @@ -259,7 +259,7 @@ void poly_deinit(const route_head *h) { SHPObject *shpobject; - shpobject = SHPCreateSimpleObject(SHPT_ARC, route_waypt_count(), + shpobject = SHPCreateSimpleObject(SHPT_ARC, track_waypt_count(), polybufx, polybufy, polybufz); SHPWriteObject(ohandle, -1, shpobject); SHPDestroyObject(shpobject); -- 2.30.2